package com.ruoyi.system.domain.zhuangxiumain.orderformMain;



import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *订单主表
 *赵德健
 * */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderMaster implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 订单ID */
  private Integer orderId;
  private Integer numorderId;

  /** 订单编号 yyyymmddnnnnnnnn */
  @Excel(name = "订单编号 yyyymmddnnnnnnnn")
  private String orderSn;

  /** 下单人ID */
  @Excel(name = "下单人ID")
  private Integer customerId;

  @Excel(name ="下单人手机")
  private String customerPhone;

  /** 收货人姓名 */
  @Excel(name = "收货人姓名")
  private String shippingUser;

  /** 省 */
  @Excel(name = "省")
  private String province;

  /** 市 */
  @Excel(name = "市")
  private String city;
  private String customerName;

  /** 区 */
  @Excel(name = "区")
  private String district;

  /** 地址 */
  @Excel(name = "地址")
  private String address;

  /** 支付方式：1支付宝,2微信，3线下 */
  @Excel(name = "支付方式：1支付宝,2微信，3线下")
  private Integer paymentMethod;

  /** 订单金额 */
  @Excel(name = "订单金额")
  private double orderMoney;

  /** 优惠金额 */
  @Excel(name = "优惠金额")
  private double districtMoney;

  /** 运费金额 */
  @Excel(name = "运费金额")
  private double shippingMoney;

  /** 支付金额 */
  @Excel(name = "支付金额")
  private double paymentMoney;

  /** 快递公司名称 */
  @Excel(name = "快递公司名称")
  private String shippingCompName;

  /** 快递单号 */
  @Excel(name = "快递单号")
  private String shippingSn;

  /** 发货时间 */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date shippingTime;

  /** 支付时间 */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date payTime;

  /** 收货时间 */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date receiveTime;

  /** 订单状态 */
  @Excel(name = "订单状态")
  private Integer orderStatus;

  /** 订单积分 */
  @Excel(name = "订单积分")
  private Integer orderPoint;

  /** 发票抬头 */
  @Excel(name = "发票抬头")
  private String invoiceTime;

  private String address1;

  /** 最后修改时间 */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date modifiedTime;
  private Date createTime;
  private Date createTime1;



  private String userName;

  private double productPrice;
  private long userId;
  private Integer productId;
  private Integer productIdone;
  private Integer orderDetailId;

  private String categoryName;
  private String productName;
  private String shopsName;
  private String categoryType;
  private String supplierTypeform;
  private String loginName;
  private String supplier_code;

  private Integer supplierId;

  // 支付凭证ID
  private Long orderVoucherId;

  // 支付凭证图片地址
  private String orderVoucherUrl;

  // 审核状态： 0未审核 1已审核
  private String voucherType;


  public Integer getSupplierId() {
    return supplierId;
  }

  public void setSupplierId(Integer supplierId) {
    this.supplierId = supplierId;
  }

  public static long getSerialVersionUID() {
    return serialVersionUID;
  }

  public Integer getOrderId() {
    return orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }

  public Integer getNumorderId() {
    return numorderId;
  }

  public void setNumorderId(Integer numorderId) {
    this.numorderId = numorderId;
  }

  public String getOrderSn() {
    return orderSn;
  }

  public void setOrderSn(String orderSn) {
    this.orderSn = orderSn;
  }

  public Integer getCustomerId() {
    return customerId;
  }

  public void setCustomerId(Integer customerId) {
    this.customerId = customerId;
  }

  public String getCustomerPhone() {
    return customerPhone;
  }

  public void setCustomerPhone(String customerPhone) {
    this.customerPhone = customerPhone;
  }

  public String getShippingUser() {
    return shippingUser;
  }

  public void setShippingUser(String shippingUser) {
    this.shippingUser = shippingUser;
  }

  public String getProvince() {
    return province;
  }

  public void setProvince(String province) {
    this.province = province;
  }

  public String getCity() {
    return city;
  }

  public void setCity(String city) {
    this.city = city;
  }

  public String getDistrict() {
    return district;
  }

  public void setDistrict(String district) {
    this.district = district;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public Integer getPaymentMethod() {
    return paymentMethod;
  }

  public void setPaymentMethod(Integer paymentMethod) {
    this.paymentMethod = paymentMethod;
  }


  public double getOrderMoney() {
    return orderMoney;
  }

  public void setOrderMoney(double orderMoney) {
    this.orderMoney = orderMoney;
  }

  public double getDistrictMoney() {
    return districtMoney;
  }

  public void setDistrictMoney(double districtMoney) {
    this.districtMoney = districtMoney;
  }

  public double getShippingMoney() {
    return shippingMoney;
  }

  public void setShippingMoney(double shippingMoney) {
    this.shippingMoney = shippingMoney;
  }

  public double getPaymentMoney() {
    return paymentMoney;
  }

  public void setPaymentMoney(double paymentMoney) {
    this.paymentMoney = paymentMoney;
  }

  public String getShippingCompName() {
    return shippingCompName;
  }

  public void setShippingCompName(String shippingCompName) {
    this.shippingCompName = shippingCompName;
  }

  public String getShippingSn() {
    return shippingSn;
  }

  public void setShippingSn(String shippingSn) {
    this.shippingSn = shippingSn;
  }

  public Date getShippingTime() {
    return shippingTime;
  }

  public void setShippingTime(Date shippingTime) {
    this.shippingTime = shippingTime;
  }

  public Date getPayTime() {
    return payTime;
  }

  public void setPayTime(Date payTime) {
    this.payTime = payTime;
  }

  public Date getReceiveTime() {
    return receiveTime;
  }

  public void setReceiveTime(Date receiveTime) {
    this.receiveTime = receiveTime;
  }

  public Integer getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(Integer orderStatus) {
    this.orderStatus = orderStatus;
  }

  public Integer getOrderPoint() {
    return orderPoint;
  }

  public void setOrderPoint(Integer orderPoint) {
    this.orderPoint = orderPoint;
  }

  public String getInvoiceTime() {
    return invoiceTime;
  }

  public void setInvoiceTime(String invoiceTime) {
    this.invoiceTime = invoiceTime;
  }

  public Date getModifiedTime() {
    return modifiedTime;
  }

  public void setModifiedTime(Date modifiedTime) {
    this.modifiedTime = modifiedTime;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public double getProductPrice() {
    return productPrice;
  }

  public void setProductPrice(double productPrice) {
    this.productPrice = productPrice;
  }

  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public Integer getProductIdone() {
    return productIdone;
  }

  public void setProductIdone(Integer productIdone) {
    this.productIdone = productIdone;
  }

  public Integer getOrderDetailId() {
    return orderDetailId;
  }

  public void setOrderDetailId(Integer orderDetailId) {
    this.orderDetailId = orderDetailId;
  }

  public String getCategoryName() {
    return categoryName;
  }

  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }

  public String getShopsName() {
    return shopsName;
  }

  public void setShopsName(String shopsName) {
    this.shopsName = shopsName;
  }

  public String getCategoryType() {
    return categoryType;
  }

  public void setCategoryType(String categoryType) {
    this.categoryType = categoryType;
  }

  public String getSupplierTypeform() {
    return supplierTypeform;
  }

  public void setSupplierTypeform(String supplierTypeform) {
    this.supplierTypeform = supplierTypeform;
  }

  public String getLoginName() {
    return loginName;
  }

  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  public String getSupplier_code() {
    return supplier_code;
  }

  public void setSupplier_code(String supplier_code) {
    this.supplier_code = supplier_code;
  }


  public Long getOrderVoucherId() {
    return orderVoucherId;
  }

  public void setOrderVoucherId(Long orderVoucherId) {
    this.orderVoucherId = orderVoucherId;
  }

  public String getOrderVoucherUrl() {
    return orderVoucherUrl;
  }

  public void setOrderVoucherUrl(String orderVoucherUrl) {
    this.orderVoucherUrl = orderVoucherUrl;
  }

  public String getVoucherType() {
    return voucherType;
  }

  public void setVoucherType(String voucherType) {
    this.voucherType = voucherType;
  }

  public String getCustomerName() {
    return customerName;
  }

  public void setCustomerName(String customerName) {
    this.customerName = customerName;
  }

  @Override
  public String toString() {
    return "OrderMaster{" +
            "orderId=" + orderId +
            ", numorderId=" + numorderId +
            ", orderSn='" + orderSn + '\'' +
            ", customerId=" + customerId +
            ", customerPhone='" + customerPhone + '\'' +
            ", shippingUser='" + shippingUser + '\'' +
            ", province='" + province + '\'' +
            ", city='" + city + '\'' +
            ", district='" + district + '\'' +
            ", address='" + address + '\'' +
            ", paymentMethod=" + paymentMethod +
            ", orderMoney=" + orderMoney +
            ", districtMoney=" + districtMoney +
            ", shippingMoney=" + shippingMoney +
            ", paymentMoney=" + paymentMoney +
            ", shippingCompName='" + shippingCompName + '\'' +
            ", shippingSn='" + shippingSn + '\'' +
            ", shippingTime=" + shippingTime +
            ", payTime=" + payTime +
            ", receiveTime=" + receiveTime +
            ", orderStatus=" + orderStatus +
            ", orderPoint=" + orderPoint +
            ", invoiceTime='" + invoiceTime + '\'' +
            ", modifiedTime=" + modifiedTime +
            ", createTime=" + createTime +
            ", userName='" + userName + '\'' +
            ", productPrice=" + productPrice +
            ", userId=" + userId +
            ", productId=" + productId +
            ", productIdone=" + productIdone +
            ", orderDetailId=" + orderDetailId +
            ", categoryName='" + categoryName + '\'' +
            ", productName='" + productName + '\'' +
            ", shopsName='" + shopsName + '\'' +
            ", categoryType='" + categoryType + '\'' +
            ", supplierTypeform='" + supplierTypeform + '\'' +
            ", loginName='" + loginName + '\'' +
            ", supplier_code='" + supplier_code + '\'' +
            ", supplierId=" + supplierId +
            ", orderVoucherId=" + orderVoucherId +
            ", orderVoucherUrl='" + orderVoucherUrl + '\'' +
            ", voucherType='" + voucherType + '\'' +
            '}';
  }
}
